package com.service.gmall.feign.item;

import com.service.gmall.common.result.Result;
import com.service.gmall.model.to.SkuDetailsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author alpha
 * @className: ItemFeignClient
 * @date 2022/8/26 15:02
 * @Description
 */
@FeignClient("service-item")
@RequestMapping("/api/inner/rpc/item")
public interface SkuDetailsFeignClient {
    // 调用item服务接口
    @GetMapping("/getDetails/{skuId}")
     Result<SkuDetailsTo> getDetails(@PathVariable("skuId") Long skuId);
}
